package ibm_package;

import java.io.IOException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Context_one extends HttpServlet {
	private static final long serialVersionUID = 1L;
    private ServletConfig con;   
    public Context_one() {
        super();
        // TODO Auto-generated constructor stub
    }
    public void init(ServletConfig xconf) throws ServletException{
    	con = xconf;
    }

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		ServletContext conT = con.getServletContext();
		conT.setAttribute("Country", "Egypt");
		response.sendRedirect("/java-jsp-soliman/Context_two");
	
	}
	public void destroy(){
		
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

}
